import request from '@/utils/request'

// 查询短信通讯列表
export function listSms(query) {
  return request({
    url: '/tool/sms/list',
    method: 'get',
    params: query
  })
}

// 查询短信通讯详细
export function getSms(smsId) {
  return request({
    url: '/tool/sms/' + smsId,
    method: 'get'
  })
}

// 新增短信通讯
export function addSms(data) {
  return request({
    url: '/tool/sms',
    method: 'post',
    data: data
  })
}

// 修改短信通讯
export function updateSms(data) {
  return request({
    url: '/tool/sms',
    method: 'put',
    data: data
  })
}

// 删除短信通讯
export function delSms(smsId) {
  return request({
    url: '/tool/sms/' + smsId,
    method: 'delete'
  })
}

// 导出短信通讯
export function exportSms(query) {
  return request({
    url: '/tool/sms/export',
    method: 'get',
    params: query
  })
}